// --------------------------------------------------------------------
    // UDP服务端头文件声明
// --------------------------------------------------------------------

#include "../sock.hpp"
#include <functional>

namespace ymbxSock{
    typedef std::function<void (const std::string&req,std::string* resp)> Handler;
    class udpSrv{
    public:
        udpSrv(uint16_t port);
        void Start(Handler handler);
        ~udpSrv();
    private:
        ymbxUdpSocket _sock;
        uint16_t _port;
    };
}